//
//  CEIViewController.h
//  Balance
//
//  Created by Calvin Kuo on 12-05-09.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

/*
 Status: changed
 Last Merge Date: 05-30-2012
 Last Change Date: 
 Changes:
 Changes:
 1. add country bar plot
 */

#import <UIKit/UIKit.h>
#import "CEIDataModel.h"
#import "CEILinePlot.h"
#import "CorePlot-CocoaTouch.h"
#import "EskPlotTheme.h"
#import "CEISliderPlot.h"
#import "CEIBarPlot.h"





@interface CEIViewController : UIViewController<UISplitViewControllerDelegate,UIScrollViewDelegate, CEISliderPlotDelegate>{
@private 
    BOOL pageControlBeingUsed;
    CEILinePlot *linePlot;
    CEISliderPlot *sliderPlot;
    BOOL allCollectorsPlotAdded;
    BOOL priorPlotAdded;
    CEIDataModel *dmCopy;
    CEIBarPlot *barPlot;

    
}
@property (strong, nonatomic) UIPopoverController *masterPopoverController;
@property (strong, nonatomic) id detailItem;
@property (strong, nonatomic) IBOutlet UIPageControl *pageControl;
@property (strong, nonatomic) CEIDataModel *dm;
@property (strong, nonatomic) IBOutlet UIScrollView *scrollView;
@property (strong, nonatomic) IBOutlet CPTGraphHostingView *lineHostingView;
@property (strong, nonatomic) IBOutlet CPTGraphHostingView *sliderHostingView;
@property (strong, nonatomic) IBOutlet UIButton *priorButton;
@property (strong, nonatomic) IBOutlet UIButton *allCollectorsButton;
@property (strong, nonatomic) IBOutlet CPTGraphHostingView *barHostingView;
@property (strong, nonatomic) IBOutlet UIView *buttonsView;
@property (strong, nonatomic) IBOutlet UIButton *notesButton;
@property (strong, nonatomic) IBOutlet UIButton *detailsButton;

- (IBAction)allCollectorsButtonPressed:(UIButton *)sender;
- (IBAction)priorPeriodButtonPressed:(id)sender;







- (void)configureView;
- (IBAction)changePage:(UIPageControl *)sender;


@end
